package Try;

import Main.FileUtils.FileUtil;
import com.sun.corba.se.impl.resolver.SplitLocalResolverImpl;

import java.io.BufferedWriter;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.*;

public class Main2 {
    public static void main(String[] args) throws IOException {
//        File file = new File("C:\\Users\\ruanjie\\Desktop\\try.txt");
//        BufferedWriter bufferWriter = FileUtil.getBufferWriter(file);
//
//        bufferWriter.write("a\nb\n");
//
//        bufferWriter.close();
//        TreeMap<Integer, Integer> map = new TreeMap<>();
//        map.put(1, map.getOrDefault(map.get(9), 0) + 1);
//
//        int[] size  = new int[map.size()];
//        int i = 0;
//        for (Map.Entry<Integer, Integer> en: map.entrySet()){
//            size[i] = en.getKey();
//            i++;
//        }

        int[][] p = null;
        Arrays.sort(p,(a,b)->{return (a[0]-b[0])==0?a[0]-b[0]:a[1]-b[1];});
    }
}
